<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ include file="/include/global.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="/include/headqui.jsp" />
<title>编辑用户信息</title>
</head>
<body >
<div id="scrollContent" class="border_gray">
	<div class="box2" panelTitle="修改用户" statusText="" panelWidth="800" roller="true">
	<form id="usersave" name="usersave" action="${pageContext.request.contextPath}/admin/ugr/user_save.jspa" method="post">
		<input type="hidden" name="id" value="${id}"/>
		<input type="hidden" name="user.id" value="${user.id}"/>
		<input type="hidden" name="page" value="${page}"/>
		<table class="tableStyle" useColor="false">
			<tr>
				<th scope="row" width="20%">登录名:</th>
				<td>${user.username}</td>
			</tr>
			<tr>
				<th scope="row">用户名:</th>
				<td><input type="text" name="user.fullname"
					value="${user.fullname}" /></td>
			</tr>
			<tr>
				<th scope="row">联系人:</th>
				<td><input type="text" name="user.linkmen"
					value="${user.linkmen}" /></td>
			</tr>
			<tr>
				<th scope="row">联系电话:</th>
				<td><input type="text" name="user.phone"
					value="${user.phone}" /></td>
			</tr>
			<tr>
				<th scope="row">手机:</th>
				<td><input type="text" name="user.mobile"
					value="${user.mobile}" /></td>
			</tr>
			<tr>
			<tr>
				<th scope="row">E-mail:</th>
				<td><input type="text" name="user.email"
					value="${user.email}" /></td>
			</tr>
			<tr>
				<th scope="row">排序:</th>
				<td><input type="text" name="user.userOrder"
					value="${user.userOrder}" /></td>
			</tr>
			<tr>
				<th scope="row">部门:</th>
				<td><dept:select name="deptCode" value="${user.dept.code}"
						cssClass="default" /></td>
			</tr>
			<tr>

				<th scope="row">职务:</th>
				<td><input type="text" name="user.duty" value="${user.duty}" />
				</td>
			</tr>
			<tr>
				<th scope="row">是否可用:</th>
				<td><sform:xlist name="user.enabled" cate="checkbox"
						list="true:可用,false:不可用" value="${user.enabled}" /></td>
			</tr>
			<tr>
				<th scope="row">角色</th>
				<td>${rolesHtml}</td>
			</tr>
			<tr style="height: 50px;">
				<td colspan="2" class="ali02">
				<input type="submit"	value="保存" /> &nbsp;&nbsp; 
				<input type="button" value="初始化密码"	onclick="if(confirm('确定要初始化当前用户密码吗?'))window.location='passwordinit.jspa?id=${user.id}';" />&nbsp;&nbsp;
				<input type="button" value="返回" onclick="window.location='user_browse.jspa?page=${page}'" /></td>
			</tr>
		</table>
	</form>
	</div>
</div>
</body>
</html>